package com.ruoyi.project.medicinal.service.impl;

import com.ruoyi.project.medicinal.domain.StockProvider;
import com.ruoyi.project.medicinal.mapper.ProviderMapper;
import com.ruoyi.project.medicinal.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    private ProviderMapper providerMapper;
    @Override
    public List<StockProvider> selectProvList(StockProvider provider) {
        return providerMapper.selectProvList(provider);
    }

    @Override
    public int insertProv(StockProvider provider) {
        return providerMapper.insertProv(provider);
    }

    @Override
    public StockProvider selectProvById(Long providerId) {
        return providerMapper.selectProvById(providerId);
    }

    @Override
    public int updateProv(StockProvider provider) {
        return providerMapper.updateProv(provider);
    }

    @Override
    public int deleteProvByIds(Long[] providerId) {
        return providerMapper.deleteProvByIds(providerId);
    }
}
